-
Notifications
You must be signed in to change notification settings - Fork 121
Update WC plugin matching to use the file name in plugin path: use cases that match plugin by name - part 3 #15947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update WC plugin matching to use the file name in plugin path: use cases that match plugin by name - part 3 #15947
Conversation
…ch system plugins using `ResultsController`.
…that matches by plugin file name.
…matches by plugin file name.
…iewModel` changes.
…ng with Plugin enum.
… Plugin enum. Add active state filter. Fix a build warning in its test file.
…at all use cases are replaced with Plugin enum.
…m with active state filtering.
|
|
…ameWithoutExtension` as private.
staskus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good 👍
I picked a few random plugins to confirm the functionality:
✅ Bundles
✅ Gift cards
✅ Blaze
✅ Subscriptions
| } | ||
|
|
||
| private extension ProductPasswordEligibilityUseCaseTests { | ||
| func insertWooCommercePlugin(version: String, active: Bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍

Part 3 of WOOMOB-913
Just one review is required.
Description
This is part 3 of the effort to replace plugin matching by name with plugin file name matching. It uses the centralized
Pluginenum hiding the file name matching implementation.Key Changes
This change improves the reliability of plugin detection for merchants and provides a more robust foundation for future plugin-related features.
Testing steps
Please feel free to pick up one or more of the test cases below.
Testing information
Testing one of the states for each case is fine.
WooCommerce Product Bundles Plugin
WooCommerce Gift Cards Plugin
Google Listings and Ads Plugin
WooCommerce Subscriptions Plugin
WooCommerce Product Bundles Plugin
with promote URL
WooCommerce Composite Products Plugin
WooCommerce Version Requirements
Note: I had to comment out some checks in
BlazeEligibilityChecker.checkSiteEligibilityto reach the Blaze plugin check.Jetpack plugin state
Screenshots
RELEASE-NOTES.txtif necessary.